# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Lex Black <autumn-wind@web.de>

pkgname=wayland-utils
pkgver=1.2.0
pkgrel=1
pkgdesc='Wayland tools to display information about current compositor'
url='https://gitlab.freedesktop.org/wayland/wayland-utils'
arch=(loong64 x86_64)
license=(MIT)
depends=(wayland libdrm)
makedepends=(meson wayland-protocols)
source=(https://gitlab.freedesktop.org/wayland/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('2ccc0d31c7327f3739322d643e13c1346f2485ae860e837cf58524346d89566c')

build() {
  meson $pkgname-$pkgver build \
    --prefix /usr
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"

  install -Dm644 $pkgname-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
}
